package data;

import com.mongodb.MongoClient;

public class DatabaseClient implements Comparable<DatabaseClient>{
    private String name;
    private MongoClient client;
    private String host;
    private String port;

    public DatabaseClient(String name, String host, String port) {
        this.name = name;
        this.host = host;
        this.port = port;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MongoClient getClient() {
        return client;
    }

    public void setClient(MongoClient client) {
        this.client = client;
    }

    @Override
    public int compareTo(DatabaseClient o) {
        if (this == o) return 0; else return 1;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
